/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package geradormvc;

import br.com.geradormvc.visao.gui.GUIPrincipal;
import br.com.geradormvc.visao.ouvinte.OuvinteDeGUIPrincipal;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;

public class Main {

    public static void main(String[] args) throws Exception {
        try {
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (UnsupportedLookAndFeelException e) {
            // handle exception
        } catch (ClassNotFoundException e) {
            // handle exception
        } catch (InstantiationException e) {
            // handle exception
        } catch (IllegalAccessException e) {
            // handle exception
        }

       GUIPrincipal guiPrincipal = new GUIPrincipal();
       OuvinteDeGUIPrincipal ouvinte = new OuvinteDeGUIPrincipal(guiPrincipal);
       guiPrincipal.setVisible(true);

  }

}